package br.univas.vperiod.jowey.entities;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.Set;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

@Entity
@Table(name="project")
public class Project implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 3418152223209289179L;

	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	private long idProject;
	
	private String projectDescription;
	private String beginDate;
	private String endDate;
	
	@OneToMany(mappedBy="project",targetEntity=PlayerJob.class,fetch=FetchType.LAZY)
	private Set<PlayerJob> playerJobs;
	
	private ArrayList<Player> teste = new ArrayList<Player>();
	

	public long getIdProject() {
		return idProject;
	}

	public void setIdProject(long idProject) {
		this.idProject = idProject;
	}

	public String getProjectDescription() {
		return projectDescription;
	}

	public void setProjectDescription(String projectDescription) {
		this.projectDescription = projectDescription;
	}

	public String getBeginDate() {
		return beginDate;
	}

	public void setBeginDate(String beginDate) {
		this.beginDate = beginDate;
	}

	public String getEndDate() {
		return endDate;
	}

	public void setEndDate(String endDate) {
		this.endDate = endDate;
	}

	public Set<PlayerJob> getPlayerJobs() {
		return playerJobs;
	}

	public void setPlayerJobs(Set<PlayerJob> playerJobs) {
		this.playerJobs = playerJobs;
	}


	public ArrayList<Player> getTeste() {
		return teste;
	}


	public void setTeste(ArrayList<Player> teste) {
		this.teste = teste;
	}
	
}
